CFLAG= -I ../mqthird/muduo/include
LFLAG= -L ../mqthird/muduo/lib -lprotobuf -pthread -lmuduo_net -lmuduo_base -lz
# .PHONY:consumer_client public_client
all:consumer_client public_client
consumer_client:consumer_client.cpp ../mqcommon/mq_msg.pb.cc ../mqcommon/mq_proto.pb.cc ../mqthird/muduo/include/muduo/protoc/codec.cc
	g++ -std=c++11 $(CFLAG) $^ -o $@ $(LFLAG)
public_client:client.cpp ../mqcommon/mq_msg.pb.cc ../mqcommon/mq_proto.pb.cc ../mqthird/muduo/include/muduo/protoc/codec.cc
	g++ -std=c++11 $(CFLAG) $^ -o $@ $(LFLAG)
.PHONY:clean_consumer clean_public
clean_consumer:
	rm -f consumer_client
clean_public:
	rm -f public_client